home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / DeveloperStax.cpt / Developer Stack 1.2r / card_24253.txt < prev    next >
Text File  |  1989-02-26  |  945b  |  51 lines

  1. -- card: 24253 from stack: in.2r
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2612
  5. -- name: sendSerial
  6.  
  7.  
  8. -- part contents for background part 13
  9. ----- text -----
  10. 15
  11.  
  12. -- part contents for background part 2
  13. ----- text -----
  14. sendSerial
  15.  
  16. -- part contents for background part 10
  17. ----- text -----
  18.  
  19. Examples of use:
  20.  
  21.  
  22. SendSerial <"12345">
  23.  
  24. ‚Ä¢sends the string 12345 out the modem port at 9600 baud (the default)
  25.  
  26.  
  27. SendSerial "12345", 1200
  28.  
  29. ‚Ä¢sends the string 12345 out the modem port at 1200 baud
  30.  
  31.  
  32. SendSerial "^41^42hello"
  33.  
  34. ‚Ä¢sends the string ABhello at 9600 baud (41 is hex for A; 42 is hex for B) 
  35. (^ is shift/6 and must be followed by exactly two hex digits)
  36.  
  37.  
  38. SendSerial "hello^^"
  39.  
  40. ‚Ä¢sends hello^ (use two ^^ if you 
  41. really want a ^)
  42.  
  43.  
  44. SendSerial "abcd^45^0D^0D", 2400
  45.  
  46. ‚Ä¢sends abcdE<CR><CR> at 2400 baud (<CR> = carriage return (Ascii 0D))
  47.  
  48. -- part contents for background part 3
  49. ----- text -----
  50.  
  51. Send characters out the serial port.